<div class="log-container">
  <nz-card>
    <nz-table [nzData]="tableData">
      <thead (nzSortChange)="sort($event)" nzSingleSort>
        <tr>
          <th nzShowSort nzSortKey="time">操作时间</th>
          <th nzShowSort nzSortKey="user">用户</th>
          <th nzShowSort nzSortKey="content">操作内容</th>
          <th nzShowSort nzSortKey="level">级别</th>
        </tr>
      </thead>
      <tbody>
        <tr *ngFor="let row of tableData">
          <td>{{row.time}}</td>
          <td>{{row.user}}</td>
          <td>{{row.content}}</td>
          <td>{{row.level}}</td>
        </tr>
      </tbody>
    </nz-table>
  </nz-card>
</div>

